package com.mall.service;

import com.mall.entity.Orderproduct;
import com.mall.entity.Orders;
import com.mall.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.httpResult.HttpResult;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author fire
 * @since 2020-04-16
 */
public interface UserService extends IService<User> {

    String findPasswordByPhone(String phone);

    int saveUser(User user);

    int selectIdByPhone(String phone);

    List<Orders> listOrdersByUserIdAndStatus(int userId, String status ,int pageNo, int pageSize);

    List<Orderproduct> listOrderProductByUserId(int userId , String status);

    boolean returnOrder(int userId , int orderId , String description);

    HttpResult getOrderReturnStatus(int userId , int orderId);

    HttpResult evaluate(Orderproduct orderproduct);


}
